import { createRouter, createWebHistory } from 'vue-router'

import LoginVue from '@/views/Login.vue'
import CharVue from '@/views/Char.vue'
import SummaryDataVue from '@/views/char/SummaryData.vue'
import UserInfoVue from '@/views/user/UserInfo.vue'
import ForcasteDataVue from '@/views/char/ForcasteData.vue'
import ResetPasswordVue from '@/views/user/ResetPassword.Vue'

const routes = [
    { path: '/', component: LoginVue },
    {
        path: '/char', component: CharVue, redirect: '/char/SummaryData', children: [
            { path: '/char/SummaryData', component: SummaryDataVue },
            { path: '/char/ForcasteData', component: ForcasteDataVue },
            { path: '/user/ResetPassword', component: ResetPasswordVue },
            { path: '/user/info', component: UserInfoVue },

        ]
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes: routes
})

export default router